<?php
    //初始化
    $message = "eyJhbGxfc3RhdHVzIiA6IHsidGVtcGVyYXR1cmUiIDogIjMyLjAwMCIsImxlZGciIDogIm9mZiIsImxlZGIiIDogIm9uIiwiaHVtaWRpdHkiIDogIjg4LjAwMCIsImxlZHIiIDogIm9uIn19";
    $m = base64_decode($message);
    echo $m



    //关闭URL请求


header("Content-type:application/json"); 
$receivedata = file_get_contents("php://input");
$postStr = json_encode($receivedata);
$data=json_decode($receivedata,true);
$datadevice_id=$data["deviceid"];
if($datadevice_id=="m_test_866710037683494"){
    
    $datamessage=$data["message"];
    $m = base64_decode($datamessage);
    echo $m
    $rev_json = json_decode($m,true);
    echo $rev_json
}

?>
